.nut-theme-dark {
  .nut-cascader__bar {
    color: $dark-color;
    background: $dark-background2;
  }

  .nut-tabs__titles {
    background: $dark-background3 !important;
  }

  .nut-cascader-item {
    color: $dark-color-gray;
  }
}

.nut-cascader {
  width: 100%;
  font-size: $cascader-font-size;
  line-height: $cascader-line-height;

  .nut-tab-pane {
    padding: 0;
  }

  &.nut-tabs.horizontal .nut-tabs__titles .nut-tabs__titles-item {
    flex: initial;
    padding: $cascader-tabs-item-padding;
    white-space: nowrap;
  }

  .nut-tabs__titles {
    padding: $cascader-tabs-item-padding;
    background: #fff;
  }

  &__bar {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: $cascader-bar-padding;
    font-size: $cascader-bar-font-size;
    font-weight: bold;
    line-height: $cascader-bar-line-height;
    color: $cascader-bar-color;
    text-align: center;
  }

  &-pane {
    display: block;
    width: 100%;
    height: 342px;
    padding: 0;
    padding-top: 10px;
    margin: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  &-item {
    display: flex;
    align-items: center;
    padding: $cascader-item-padding;
    margin: 0;
    font-size: $cascader-item-font-size;
    color: $cascader-item-color;
    cursor: pointer;

    &__title {
      flex: 1;
    }

    &__icon-check {
      margin-left: 10px;
      visibility: hidden;
    }

    &__icon-loading {
      margin-left: 10px;
    }

    &.active:not(.disabled) {
      color: $cascader-item-active-color;
    }

    &.active &__icon-check {
      color: $cascader-item-active-color;
      visibility: visible;
    }

    &.disabled {
      cursor: not-allowed;
      opacity: 0.6;
    }
  }
}
